import UserInfo from './components/UserInfo.js'

let template = `
<div id="box">
<UserInfo v-for="item in AllUserInfo" :name="item.name" :age="item.age" />
</div>
`

export default {
    data() {
        return {
            AllUserInfo: [
                {name: '张三', age: 16},
                {name: '李四', age: 17},
                {name: '王五', age: 18}
            ]
        }
    },
    components: {
        UserInfo,
    },
    template
}